﻿using System;
using System.Windows.Markup;
using LightPersist.Metainfo;
using System.IO;
using System.Diagnostics;

namespace TestDomainModel
{
	partial class FakeControl
	{
		public int TestInit;

		partial void FakeControlInit()
		{
			TestInit = 2;
		}

		[DebuggerNonUserCode]
		public override string ToString()
		{
			string name;
			try
			{
				name = Name;
			}
			catch
			{
				name = null;
			}
			var msg =(base.ToString() + (!string.IsNullOrEmpty(name) ? " " + name : null));
			if(msg.Contains(" "))
			{
				msg = "[" + msg + "]";
			}
			return msg;
		}
	}
}

